﻿<%@ Page Title="" Language="C#" MasterPageFile="~/OuterInfo/OuterInfo.Master" AutoEventWireup="true" CodeBehind="OuterInfoQueryDetails.aspx.cs" Inherits="QuaManSys.OuterInfo.OuterInfoQueryDetails" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
 <link rel="Stylesheet" type="text/css" href="../Css/QuaInfoPro.css" />
    <link rel="Stylesheet" type="text/css" href="../Css/Search.css" media="screen" />
    <link href="../Css/QuaInfoFd.css" rel="stylesheet" type="text/css" />
    <script language="javascript" type="text/javascript" src="../js/upload.js"></script>
    <script language="javascript" type="text/javascript" src="../Calendar/WdatePicker.js"></script>
    <script language="javascript" type="text/javascript" src="../CheckBox/checkBoxFunction.js"></script>
    <script language="javascript" type="text/javascript" src="../Search/search.js"></script>
    <script language="javascript" type="text/javascript" src="../js/pagePrint.js"></script>
    <script type="text/javascript">
        function checkTime() {
            var fbkt = document.getElementById("<%=fdbktime.ClientID %>").value;
            var clst = document.getElementById("<%=lblCusRT.ClientID %>").value;
            if (fbkt == null || fbkt == "") { alert("请输入反馈时间"); return false; }
            if (clst == null || clst == "") { alert("请输入顾客要求闭环时间"); return false; }
            return true;
        }
        function clickSubmit() {
            var prot = document.getElementById("<%=txtProDL.ClientID %>").value;
            var projNo = document.getElementById("<%=ddlProNo.ClientID %>").value;
            if (prot == null || prot == "") { alert("请输入处理时限"); return false; }
            return confirm("分发后将不能修改，你确定要分发？");
        }


    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphInner" runat="server">

    <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
        <asp:View ID="RegistA" runat="server">
        <!--startprint-->
        <table border="1" cellspacing="0" cellpadding="0" width="100%" style="background-color:#FFFFFF;width:700px">
			<caption style="background-color:#FFFFFF;"><asp:Label id="lblQuaInfo" style="font-size: 20px" runat="Server" 
                    Font-Bold="True">质量信息反馈单</asp:Label></caption>
			<tr>
				<td>反馈单位</td>
				<td><asp:TextBox ID="lblFdCom" runat="server"></asp:TextBox></td>
				<td>反馈人</td>
				<td><asp:TextBox ID="txtFdPer" runat="server"></asp:TextBox></td>
				<td>反馈时间</td>
				<td><asp:TextBox ID="fdbktime" runat="server" cssclass="Wdate" onClick="WdatePicker()" ></asp:TextBox></td>
			</tr>
            <tr>
				<td>处理要求</td>
				<td colspan="5">					
                <asp:RadioButtonList ID="ProcssComd" runat="server" CssClass="ddlcolumn" RepeatLayout="Flow" RepeatColumns="3">
                    <asp:ListItem Text="需协调处理">
                    </asp:ListItem>
                    <asp:ListItem Text="已处理，需在后续产品上改进    ">
                    </asp:ListItem>
                    <asp:ListItem Text="已处理，供阅知">
                    </asp:ListItem>
                </asp:RadioButtonList>
                </td>
			</tr>
             <tr>
            <td rowspan="6">顾客信息描述</td>
                <td>顾客公司</td>
                <td colspan="2"><asp:TextBox ID="lblCusCo" runat="server" class="mytd" ></asp:TextBox></td>
                <td>相关公司名称</td>
                <td><asp:TextBox ID="lblRelCo" runat="server" ></asp:TextBox></td>
            </tr>
            <tr>
                <td>顾客姓名</td>
                <td colspan="2"><asp:TextBox ID="lblCusNam" runat="server" class="mytd"></asp:TextBox></td>
                <td>顾客角色</td>
                <td><asp:TextBox ID="lblCusRol" runat="server" ></asp:TextBox></td>
            </tr>
            <tr>
                <td>联系方式</td>
                <td colspan="4"><asp:TextBox ID="lblCusTel" runat="server" class="mytd"></asp:TextBox></td>
                </tr>
                <tr>
                    <td>
                        顾客要求闭环时间</td>
                    <td colspan="4">
                        <asp:TextBox ID="lblCusRT" runat="server" style="margin-left:0;margin-right:0; width:100%" CssClass="Wdate" 
                            onclick="WdatePicker()"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        顾客对此事态度</td>
                    <td colspan="4">
                        <asp:RadioButtonList ID="CareLevel" runat="server" CssClass="ddlcolumn" 
                            RepeatColumns="3" RepeatLayout="Flow">
                            <asp:ListItem Text="一般">
                        </asp:ListItem>
                            <asp:ListItem Text="关注">
                        </asp:ListItem>
                            <asp:ListItem Text="非常关注">
                        </asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td>
                        其他信息</td>
                    <td colspan="4">
                        <asp:TextBox ID="TextBox4" runat="server" TextMode="MultiLine" class="mytd"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        质量信息描述</td>
                    <td colspan="5">
                        <asp:TextBox ID="TextBox2" runat="server" TextMode="MultiLine" class="mytd"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        顾客要求或建议处置方案</td>
                    <td colspan="5">
                        <asp:TextBox ID="TextBox3" runat="server" TextMode="MultiLine" class="mytd"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        建议后继处理要求</td>
                    <td colspan="5">
                        <asp:RadioButtonList ID="CustmReq" runat="server" RepeatLayout="Flow">
                            <asp:ListItem Text="需从技术方面进一步向顾客说明">
                        </asp:ListItem>
                            <asp:ListItem Text="需从质量管理方面进一步向顾客说明">
                        </asp:ListItem>
                            <asp:ListItem Text="需启动顾客关系修复流程">
                        </asp:ListItem>
                            <asp:ListItem Text="不需要后续处理，请从下面文本框说明">
                        </asp:ListItem>
                        </asp:RadioButtonList>
                        <asp:TextBox ID="instruction" runat="server" class="myTB"></asp:TextBox>
                    </td>                
                </tr>
        </table>     
        <!--endprint-->
        <div style=" text-align:center; background-color:#ffffff;">
        <asp:Button ID="nextstep" runat="server" Text="下一步->" OnClick="nextstep_Click" 
            OnClientClick="return checkTime()" BackColor="#1a5ab8"  
                Font-Bold="False" Font-Size="Medium" Height="23px" Width="75px" 
                ForeColor="White" />
        <asp:Button ID="btnFedbackPrint"
                    runat="server" Text="打印"  OnClientClick="return doPrint()"/>
    </div>
   </asp:View>        
                            
       
    <asp:View ID="View1" runat="server">
    <!--startprint-->
    <table border="1" cellspacing="0" cellpadding="0" width="100%" style="background-color:#FFFFFF;width:700px">
        <caption style="background-color:#FFFFFF;">
            <asp:Label id="lblQuaInfoPro" style="font-size: 20px" runat="Server" Font-Bold="True">质量信息处理表</asp:Label>
        </caption>
        <tr class="noline">
			<td>编号：</td>
			<td colspan ="5"><asp:Label ID="lblQuaInfoProNo" runat="server"></asp:Label></td>				
		</tr>
        <tr>
            <td>信息类别</td>
            <td colspan="3">
                <asp:TextBox ID="txtSearch" name="txtSearch" size="30" class="mytd" onkeyup="searchSuggest('cphInner_txtSearch', this);"
                onfocus="this.className='input_on';this.onmouseout=''" 
                onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};" 
                onmousemove="this.className='input_move'" onmouseout="this.className='input_out'" runat="server">
                </asp:TextBox><div id="search_suggest" style="display:none"></div>
            </td>
            <td>重要级别</td>
            <td><asp:DropDownList ID="txtImpLev" runat="server" class="mytd">
                <asp:ListItem Text="高"></asp:ListItem>
                <asp:ListItem Text="中"></asp:ListItem>
                <asp:ListItem Text="低"></asp:ListItem>
                </asp:DropDownList></td>
        </tr>
        <tr>
                <td>机型</td>
                <td><asp:Label ID="txtlblMacTyp" runat="server" Text="txtMacTyp"></asp:Label></td>
                <td>机号</td>
                <td><asp:Label ID="txtlblMacNo" runat="server" Text="Label"></asp:Label></td>
                <td>工程编号</td>
                <td><asp:DropDownList ID="ddlProNo" runat="server" class="mytd" AutoPostBack="True"></asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>零部件</td>
                <td colspan="3"><asp:TextBox ID="txtComponent" runat="server" class="mytd"></asp:TextBox></td>
                <td>故障类型</td>
                <td><asp:TextBox ID="txtFaiTyp" runat="server" class="mytd"></asp:TextBox></td>
            </tr>
            <tr>
                <td>生产厂家</td>
                <td colspan="5"><asp:TextBox ID="txtManufac" runat="server" class="mytd"></asp:TextBox></td>
            </tr>
            <tr>
                <td>项目分类</td>
                <td colspan="2"><asp:TextBox ID="txtPjCls" runat="server" class="mytd"></asp:TextBox></td>
                <td>名称</td>
                <td colspan="2"><asp:TextBox ID="txtPjNam" runat="server" class="mytd"></asp:TextBox></td>
            </tr>
            <tr>
                <td>责任部门</td>
                <td colspan="2"><asp:DropDownList ID="ResponDept" runat="server" class="mytd"  AutoPostBack="true">
                </asp:DropDownList></td>
                <td>处理时限</td>
                <td colspan="2"><asp:TextBox ID="txtProDL" runat="server" CssClass="Wdate" style="margin-left:0;margin-right:0; width:100%" onclick="WdatePicker()"></asp:TextBox></td>
            </tr>
            <tr>
                <td>关注部门</td>
                <td colspan="5"><asp:TextBox ID="txtKeyWords" runat="server" class="mytd" onclick="locking(this)" ></asp:TextBox></td>
            </tr>
            <tr>
                <td>描述</td>
                <td colspan="5"><asp:TextBox ID="txtInfoDsc" runat="server" class="mytd" TextMode="MultiLine"></asp:TextBox></td>
            </tr>
            <tr>
            <td>信息分类</td>
            <td colspan="5"><asp:RadioButtonList ID="InfoCls" runat="server" RepeatLayout="Flow" RepeatColumns="2" >
                <asp:ListItem Text="已处理（需后继关注）">
                </asp:ListItem>
                <asp:ListItem Text="未处理（需跟踪解决）">
                </asp:ListItem>
            </asp:RadioButtonList></td>
            </tr>
            <tr>
                <td>处理要求和意见</td>
                <td colspan="5"><asp:TextBox ID="txtReqAdv" runat="server"  TextMode="MultiLine" class="mytd"></asp:TextBox></td>
            </tr>
            <tr>
                <td>信息处理结果</td>
                <td colspan="5"><asp:TextBox ID="txtReqRsl" runat="server"  TextMode="MultiLine" class="mytd"></asp:TextBox></td>
            </tr>
            <tr>
                <td>质量信息处理评价</td>
                <td colspan="5"><asp:TextBox ID="txtProCmm" runat="server"  TextMode="MultiLine" class="mytd"></asp:TextBox></td>
            </tr>
    </table>  
                 
    <div style="width:700px">
        <asp:Repeater ID="Repeater1" runat="server" DataSourceID="EntityProcess">
            <HeaderTemplate>
                <table style="padding: 0px; margin: 0px border-width: medium;" cellspacing="0px"; cellpadding="0px">
                    <tr>
                        <td>
                            <b>处理部门</b>
                        </td>
                        <td>
                            <b>处理人</b>
                        </td>
                        <td colspan="3">
                            <b>处理意见</b>
                        </td>
                        <td>
                            <b>处理时间</b>
                        </td>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <asp:Label runat="server" ID="Label1" Text='<%# Eval("processerDepart") %>' />
                    </td>
                    <td>
                        <asp:Label runat="server" ID="Label2" Text='<%# Eval("processerName") %>' />
                    </td>
                    <td colspan="3">
                        <asp:Label runat="server" ID="Label5" Text='<%# Eval("opinion") %>' />
                    </td>
                    <td>
                        <asp:Label runat="server" ID="Label6" Text='<%# Eval("processingDate", "{0:yyyy/MM/dd}") %>' />
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
               
                </table>
            </FooterTemplate>
        </asp:Repeater>
        <asp:EntityDataSource ID="EntityProcess" runat="server" ConnectionString="name=QuaManSysEntities"
            DefaultContainerName="QuaManSysEntities" EnableFlattening="False" EntitySetName="OuterQualityInfoPro"
            Select="it.[qualityInfoId], it.[processerName], it.[processerDepart], it.[processingDate], it.[opinion]"
            Where="it.[qualityInfoId]=@qualityInfoId">
            <WhereParameters>
                <asp:ControlParameter ControlID="lblQuaInfoProNo" Name="qualityInfoId" Type="String" />
            </WhereParameters>
        </asp:EntityDataSource>
    </div>
     <!--endprint-->
    <div style=" text-align:center; background-color:#ffffff;">
        <asp:Button ID="prestep" runat="server" Text="<-上一页" OnClick="prestep_Click" BackColor="#1a5ab8"  
            Font-Bold="False" Font-Size="Medium" Height="23px" Width="75px" 
            ForeColor="White" />
             <asp:Button ID="btnOuterInfoPrint"
                    runat="server" Text="打印"  OnClientClick="return doPrint()"/>
    </div>
                    

    
    
    </asp:View>
    </asp:MultiView>
</asp:Content>
